package com.design.pattern.abstractfactory.factory;

import com.design.pattern.abstractfactory.product.*;

/**
 * Created by Administrator on 2016/5/17.
 * 生产商务型汽车的工厂
 */
public class BusinessFactory extends Factory {
    @Override
    public BenZ createBenZ(String carName) {
        return new BenZBusiness(carName);
    }

    @Override
    public Bmw createBmw(String carName) {
        return new BmwBusiness();
    }

    @Override
    public Audi createAudi(String carName) {
        return new AudiBusiness();
    }
}
